package com.naiterui.ehp.bs.payment;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

import com.naiterui.common.redis.config.EnableRedisAutoConfiguration;
import com.naiterui.common.repository.core.BaseJpaRespositoryImpl;

/**
 * 项目启动入口
 *
 * @date 2017年09月09日
 * @since 1.0.0
 */
@EnableDiscoveryClient
@EnableRetry
@EnableAsync
@SpringBootApplication
@EnableRedisAutoConfiguration
@ComponentScan("com.naiterui")
@EntityScan("com.naiterui.ehp.bs.payment.entity")
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableJpaRepositories(basePackages = {"com.naiterui.ehp.bs.payment.repository"}, repositoryBaseClass = BaseJpaRespositoryImpl.class)
public class PayServer {

    /**
     * 项目启动main方法
     *
     * @param args the input arguments
     *
     * @date 2017年09月09日
     * @since 1.0.0
     */
    public static void main(String[] args) {
        SpringApplication.run(PayServer.class, args);
    }

}
